package bitTest;



public class IntTest {
    public static void test() {
        int i = 4;
        System.out.println(Integer.toBinaryString(i));
        int j = -4;
        String s = Integer.toBinaryString(j);
        System.out.println(s);
        System.out.println(s.length());
    }

    public static void main(String[] args) {
        int i = 4;
        System.out.println(Integer.toBinaryString(i));
        int j = -4;
        String s = Integer.toBinaryString(j);
        System.out.println(s);
        System.out.println(s.length());
    }
}
